#ifndef HISTORYITEMWIDGET_H
#define HISTORYITEMWIDGET_H

#include <QWidget>
#include <QEvent>
namespace Ui {
class historyitemwidget;
}
class QListWidgetItem;
class historyitemmodel;
class historyitemwidget : public QWidget
{
    Q_OBJECT

public:
    explicit historyitemwidget(QWidget *parent = nullptr, QString fileName = 0, QString dirName = 0, QString url = 0, QString state = 0, QString time = 0);
    ~historyitemwidget();
    QString fileName;
    historyitemmodel *model;
    QListWidgetItem *widgetItem;
    void openfolder();
    void setTitleStyle();
    void setShadowEffect(QWidget * w);

signals:
    void clicked(historyitemwidget *widget);
private slots:
    void emitDeleteClicked();

private:
    Ui::historyitemwidget *ui;

};

#endif // HISTORYITEMWIDGET_H
